/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.leapYear.Impl;

import ac.za.cput.leapYear.LeapYear;

/**
 *
 * @author Enkosi
 */
public class LeapYearImpl implements LeapYear{

    @Override
    public boolean isLeapYear(int year) {
        if((year % 4) != 0)
            return false;
        if((year % 100) != 0)
            return false;
        if((year % 400) != 0)
            return false;
        return true;
    }
    
}
